var jTalkController = function(){this.init();};
jTalkController.Constants = {
	DEFAULT_MSG: null,
	SEND_BTN_ID: 'jTalkSendBtn',
	TEXT_FIELD_ID: 'jTalkChatInput'
};
jTalkController.prototype = {
	_c:jTalkController.Constants,
	
	init:function(){
		//code
		this._c.DEFAULT_MSG = page_data.default_msg;
		$('#jTalkChatInput').val(this._c.DEFAULT_MSG);
		$('#jTalkChatInput').bind('focus',{t:this}, function(event){  event.data.t.clearChatInputText(event.data.t); });
	},
	
	clearChatInputText:function(t){
		var _v = $('#jTalkChatInput').val();
		if(_v == t._c.DEFAULT_MSG){
			$('#jTalkChatInput').val('');
		}
	}
};


$(function(){
	var _jt = new jTalkController();
});